home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!marnold
- From: marnold@netcom.com (Matt Arnold)
- Subject: Re: Help!!! No outport, outportb in BC++4.5 /Win32???
- Message-ID: <marnoldDL9IzB.GEw@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <4d2g4p$8t4@newsserver.rrzn.uni-hannover.de> <4dcu8r$2k3@linet02.li.net>
- Date: Tue, 16 Jan 1996 07:18:47 GMT
- Sender: marnold@netcom7.netcom.com
-
- bsilvern@li.net (Bob Silvern) writes:
-
- >wulff@nwfs.rz.fh-hannover.de (Stefan Wulff) wrote:
-
- >>It seems that there aren't the commands outport, outportb,... or
- >>something like this in BC++4.5 for Win32.
- >>But i need them.
- >>Please give me an advice!
-
- >I too found that pretty anoying. I wrote these macros to ease the 16 to 32 bit
- [...]
- > #define outportb(p, d) {_DX = p; _AL = d; asm out dx,al;}
- > #define outport(p, d) {_DX = p; _AX = d; asm out dx,ax;}
- [...]
-
- The IO functions where left out intentionally as the Win32 API is supposed
- to be processor-independent. You aren't supposed to do direct hardware
- IO, interrupt-handling, etc. from a Win32 executable. I'm surprised
- Borland C++ even compiles these macros (and I even checked).
-
- But, do these hand-assembled IO sequences actually do anything when
- executed?
-
- Regards,
- -------------------------------------------------------------------------
- Matt Arnold | | ||| | |||| | | | || ||
- marnold@netcom.com | | ||| | |||| | | | || ||
- Boston, MA | 0 | ||| | |||| | | | || ||
- 617.389.7384 (h) 617.576.2760 (w) | | ||| | |||| | | | || ||
- C++, MIDI, Win32/95 developer | | ||| 4 3 1 0 8 3 || ||
- -------------------------------------------------------------------------
-